<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<form:form commandName="model" cssClass="validate"
	action="change/riskElement/save">
	<form:hidden path="id" />
	<div class="header">
		<h2>
			&nbsp;&nbsp;风险因素<span><font color="red">（* 为必填项）</font> </span>
		</h2>
	</div>
   
   <input name="categoryCode" id="categoryCode" style="display:none" >
	<table class=" form-table">
		<tbody>
			<%-- <tr>
				<td class="td1">编号：</td>
				<td class="td2"><form:input path="code" maxlength="100"
						cssClass="" /></td>
			</tr> --%>
			<tr>
				<td class="td1">衡量因素：</td>
				<td class="td2">
					<isperp:dictSelector typeCode="CHANGE_RISK_CATEGORY"
				name="categoryId" id="categoryId" hasEmptyValue="true"
				dictCssClass="required" dataWidth="260px"  onchangeFunc="changeSelected()"
				selectedValue="${model.categoryId }"></isperp:dictSelector>
				</td>
			</tr>
			<tr>
				<td class="td1">条件：</td>
				<td class="td2">
				 <form:textarea path="name" cssClass="required"/>
						
						</td>
			</tr>
			<tr>
				<td class="td1">影响系数：</td>
				<td class="td2"><form:input path="influence" cssClass="number required"
						maxlength="200" /></td>
			</tr>
			<tr>
				<td class="td1">排序：</td>
				<td class="td2"><form:input path="orderNum" cssClass="number required"
						maxlength="200" /></td>
			</tr>
			

		</tbody>
	</table>

</form:form>
<script type="text/javascript">
changeSelected();
function changeSelected()
{
   var t=$("#categoryId").find("option:selected").attr("data-code");
   $("#categoryCode").val(t);
}

</script>

<isperp:buttonList>
	<button class="submit" onclick="isperp.submitForm();">确认</button>
</isperp:buttonList>